package top.finen.miniweapp.entity;

import java.math.BigDecimal;

public class Book {
    private int id;
    private String bookName;
    private String bookDesc;
    private BigDecimal bookPrice;
    private int bookNumber;
    private String bookImgUrl;
    private String realName;
    private String userPhone;
    private String userProvince;
    private String userCity;
    private String userRegion;
    private String userAddress;
    private int userId;
    private boolean isPublish;
    private short isSold;
    private int wishNum;

    public Book() {
        super();
    }

    public Book(int id, String bookName, String bookDesc, BigDecimal bookPrice,
                int bookNumber, String bookImgUrl, String realName, String userPhone,
                String userProvince, String userCity, String userRegion, String userAddress,
                int userId, boolean isPublish, short isSold, int wishNum) {
        this.id = id;
        this.bookName = bookName;
        this.bookDesc = bookDesc;
        this.bookPrice = bookPrice;
        this.bookNumber = bookNumber;
        this.bookImgUrl = bookImgUrl;
        this.realName = realName;
        this.userPhone = userPhone;
        this.userProvince = userProvince;
        this.userCity = userCity;
        this.userRegion = userRegion;
        this.userAddress = userAddress;
        this.userId = userId;
        this.isPublish = isPublish;
        this.isSold = isSold;
        this.wishNum = wishNum;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookDesc() {
        return bookDesc;
    }

    public void setBookDesc(String bookDesc) {
        this.bookDesc = bookDesc;
    }

    public BigDecimal getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(BigDecimal bookPrice) {
        this.bookPrice = bookPrice;
    }

    public int getBookNumber() {
        return bookNumber;
    }

    public void setBookNumber(int bookNumber) {
        this.bookNumber = bookNumber;
    }

    public String getBookImgUrl() {
        return bookImgUrl;
    }

    public void setBookImgUrl(String bookImgUrl) {
        this.bookImgUrl = bookImgUrl;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserProvince() {
        return userProvince;
    }

    public void setUserProvince(String userProvince) {
        this.userProvince = userProvince;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public String getUserRegion() {
        return userRegion;
    }

    public void setUserRegion(String userRegion) {
        this.userRegion = userRegion;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isPublish() {
        return isPublish;
    }

    public void setPublish(boolean publish) {
        isPublish = publish;
    }

    public short getIsSold() {
        return isSold;
    }

    public void setIsSold(short isSold) {
        this.isSold = isSold;
    }

    public int getWishNum() {
        return wishNum;
    }

    public void setWishNum(int wishNum) {
        this.wishNum = wishNum;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", bookDesc='" + bookDesc + '\'' +
                ", bookPrice=" + bookPrice +
                ", bookNumber=" + bookNumber +
                ", bookImgUrl='" + bookImgUrl + '\'' +
                ", realName='" + realName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userProvince='" + userProvince + '\'' +
                ", userCity='" + userCity + '\'' +
                ", userRegion='" + userRegion + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", userId=" + userId +
                ", isPublish=" + isPublish +
                ", isSold=" + isSold +
                ", wishNum=" + wishNum +
                '}';
    }
}
